package com.quick.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.quick.common.annotation.Excel;
import com.quick.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单权限对象 sys_menu
 *
 * @Author: 吃素不吃肉
 * @Date: Tue Jul 25 14:29:19 CST 2023
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "菜单权限")
public class SysMenu extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 菜单ID */
    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    /** 父菜单ID */
    @Excel(name = "父菜单ID")
    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    @ApiModelProperty(value = "显示顺序")
    private Long orderNum;

    /** 路由地址 */
    @Excel(name = "路由地址")
    @ApiModelProperty(value = "路由地址")
    private String path;

    /** 组件路径 */
    @Excel(name = "组件路径")
    @ApiModelProperty(value = "组件路径")
    private String component;

    /** 路由参数 */
    @Excel(name = "路由参数")
    @ApiModelProperty(value = "路由参数")
    private String query;

    /** 是否为外链（0是 1否） */
    @Excel(name = "是否为外链", readConverterExp = "0=是,1=否")
    @ApiModelProperty(value = "是否为外链（0是 1否）")
    private Long isFrame;

    /** 是否缓存（0缓存 1不缓存） */
    @Excel(name = "是否缓存", readConverterExp = "0=缓存,1=不缓存")
    @ApiModelProperty(value = "是否缓存（0缓存 1不缓存）")
    private Long isCache;

    /** 菜单类型（M目录 C菜单 F按钮） */
    @Excel(name = "菜单类型", readConverterExp = "M=目录,C=菜单,F=按钮")
    @ApiModelProperty(value = "菜单类型（M目录 C菜单 F按钮）")
    private String menuType;

    /** 菜单状态（0显示 1隐藏） */
    @Excel(name = "菜单状态", readConverterExp = "0=显示,1=隐藏")
    @ApiModelProperty(value = "菜单状态（0显示 1隐藏）")
    private String visible;

    /** 菜单状态（0正常 1停用） */
    @Excel(name = "菜单状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "菜单状态（0正常 1停用）")
    private String status;

    /** 权限标识 */
    @Excel(name = "权限标识")
    @ApiModelProperty(value = "权限标识")
    private String perms;

    /** 菜单图标 */
    @Excel(name = "菜单图标")
    @ApiModelProperty(value = "菜单图标")
    private String icon;
    /** 子菜单图标 */
    @ApiModelProperty(value = "子菜单图标")
    List<SysMenu> children=new ArrayList<>(1);
}
